package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ProductOrder {
    private Integer proOrderId;

    /**
    * 用于用户是否可见,1为可见,0为不可见(即用户删除后)
    */
    private Integer ifcomment;

    /**
    * 总价
    */
    private Double total;

    /**
    * 单价
    */
    private Double price;

    /**
    * 状态
    */
    private Integer status;

    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 收货地址
    */
    private String address;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

    private String name;

    private String tel;

    List<ProductOrderDetail> list;
    //User中的userName
    private String userName;
}